import request from '@/utils/request';

// 查询上传文件列表
export function listUploadFileInfo(query) {
  return request({
    url: '/cms/uploadFileInfo/list',
    method: 'get',
    params: query,
  });
}

// 查询上传文件详细
export function getUploadFileInfo(id) {
  return request({
    url: '/cms/uploadFileInfo/' + id,
    method: 'get',
  });
}

// 新增上传文件
export function addUploadFileInfo(data) {
  return request({
    url: '/cms/uploadFileInfo',
    method: 'post',
    data: data,
  });
}

// 修改上传文件
export function updateUploadFileInfo(data) {
  return request({
    url: '/cms/uploadFileInfo',
    method: 'put',
    data: data,
  });
}

// 删除上传文件
export function delUploadFileInfo(id) {
  return request({
    url: '/cms/uploadFileInfo/' + id,
    method: 'delete',
  });
}
